package com.live.http.slider;

import java.util.concurrent.ArrayBlockingQueue;

public class ListPageChannel {

	private ArrayBlockingQueue<ListPage> listPageChannel = new ArrayBlockingQueue<ListPage>(
			16);

	public void addListPage(ListPage listPage) {
		listPageChannel.add(listPage);
	}

	public ListPage takeListPage() throws Exception {
		return listPageChannel.take();
	}

	public ArrayBlockingQueue<ListPage> getListPageChannel() {
		return listPageChannel;
	}

	public void setListPageChannel(ArrayBlockingQueue<ListPage> listPageChannel) {
		this.listPageChannel = listPageChannel;
	}
	
	

}
